﻿///////////////////////////////////////////////////////////////
// This is generated code. 
//////////////////////////////////////////////////////////////
// Code is generated using LLBLGen Pro version: 3.1
// Code is generated on: 2012年10月10日 8:11:50
// Code is generated using templates: SD.TemplateBindings.SharedTemplates.NET20
// Templates vendor: Solutions Design.
// Templates version: 
//////////////////////////////////////////////////////////////
using System;
using System.Collections;
using System.Data;
using SD.LLBLGen.Pro.ORMSupportClasses;

namespace NetDon.eBoss.Data.HelperClasses
{
	/// <summary>Singleton implementation of the PersistenceInfoProvider. This class is the singleton wrapper through which the actual instance is retrieved.</summary>
	/// <remarks>It uses a single instance of an internal class. The access isn't marked with locks as the PersistenceInfoProviderBase class is threadsafe.</remarks>
	internal static class PersistenceInfoProviderSingleton
	{
		#region Class Member Declarations
		private static readonly IPersistenceInfoProvider _providerInstance = new PersistenceInfoProviderCore();
		#endregion

		/// <summary>Dummy static constructor to make sure threadsafe initialization is performed.</summary>
		static PersistenceInfoProviderSingleton()
		{
		}

		/// <summary>Gets the singleton instance of the PersistenceInfoProviderCore</summary>
		/// <returns>Instance of the PersistenceInfoProvider.</returns>
		public static IPersistenceInfoProvider GetInstance()
		{
			return _providerInstance;
		}
	}

	/// <summary>Actual implementation of the PersistenceInfoProvider. Used by singleton wrapper.</summary>
	internal class PersistenceInfoProviderCore : PersistenceInfoProviderBase
	{
		/// <summary>Initializes a new instance of the <see cref="PersistenceInfoProviderCore"/> class.</summary>
		internal PersistenceInfoProviderCore()
		{
			Init();
		}

		/// <summary>Method which initializes the internal datastores with the structure of hierarchical types.</summary>
		private void Init()
		{
			this.InitClass((26 + 0));
			InitBrandsettingEntityMappings();
			InitConfigurationEntityMappings();
			InitDictionaryEntityMappings();
			InitDictionarycategoryEntityMappings();
			InitFunctionEntityMappings();
			InitHtmltoolaccountEntityMappings();
			InitHtmltoolaccounttemplateEntityMappings();
			InitHtmltoolcategoryruleEntityMappings();
			InitHtmltoolcolorEntityMappings();
			InitHtmltoolstyleEntityMappings();
			InitHtmltooltrademarksettingEntityMappings();
			InitHtmltoolvocabularyEntityMappings();
			InitProduccategoryattributeEntityMappings();
			InitProductEntityMappings();
			InitProductcategoryEntityMappings();
			InitProductgroupEntityMappings();
			InitProductsummaryEntityMappings();
			InitRoleEntityMappings();
			InitRolefunctionEntityMappings();
			InitSizesettingEntityMappings();
			InitStoreEntityMappings();
			InitStorecategoryEntityMappings();
			InitTemplateEntityMappings();
			InitTitlesettingEntityMappings();
			InitUserEntityMappings();
			InitUserroleEntityMappings();

		}


		/// <summary>Inits BrandsettingEntity's mappings</summary>
		private void InitBrandsettingEntityMappings()
		{
			this.AddElementMapping( "BrandsettingEntity", "EBOSS", @"Default", "BRANDSETTING", 6 );
			this.AddElementFieldMapping( "BrandsettingEntity", "Descbrand", "DESCBRAND", true, "VarChar", 255, 0, 0, false, "", null, typeof(System.String), 0 );
			this.AddElementFieldMapping( "BrandsettingEntity", "Descnobrand", "DESCNOBRAND", true, "VarChar", 255, 0, 0, false, "", null, typeof(System.String), 1 );
			this.AddElementFieldMapping( "BrandsettingEntity", "Id", "ID", false, "Integer", 0, 0, 0, false, "", null, typeof(System.Int32), 2 );
			this.AddElementFieldMapping( "BrandsettingEntity", "Sitecode", "SITECODE", true, "Integer", 0, 0, 0, false, "", null, typeof(System.Int32), 3 );
			this.AddElementFieldMapping( "BrandsettingEntity", "Titlebrand", "TITLEBRAND", true, "VarChar", 255, 0, 0, false, "", null, typeof(System.String), 4 );
			this.AddElementFieldMapping( "BrandsettingEntity", "Titlenobrand", "TITLENOBRAND", true, "VarChar", 255, 0, 0, false, "", null, typeof(System.String), 5 );
		}
		/// <summary>Inits ConfigurationEntity's mappings</summary>
		private void InitConfigurationEntityMappings()
		{
			this.AddElementMapping( "ConfigurationEntity", "EBOSS", @"Default", "CONFIGURATION", 3 );
			this.AddElementFieldMapping( "ConfigurationEntity", "Key", "KEY", false, "Integer", 0, 0, 0, true, "GEN_CONFIGURATION_ID", null, typeof(System.Int32), 0 );
			this.AddElementFieldMapping( "ConfigurationEntity", "Name", "NAME", false, "VarChar", 50, 0, 0, false, "", null, typeof(System.String), 1 );
			this.AddElementFieldMapping( "ConfigurationEntity", "Value", "VALUE", true, "VarChar", 4000, 0, 0, false, "", null, typeof(System.String), 2 );
		}
		/// <summary>Inits DictionaryEntity's mappings</summary>
		private void InitDictionaryEntityMappings()
		{
			this.AddElementMapping( "DictionaryEntity", "EBOSS", @"Default", "DICTIONARY", 5 );
			this.AddElementFieldMapping( "DictionaryEntity", "Fieldvalue", "FIELDVALUE", true, "Integer", 0, 0, 0, false, "", null, typeof(System.Int32), 0 );
			this.AddElementFieldMapping( "DictionaryEntity", "Index", "INDEX", false, "Integer", 0, 0, 0, false, "", null, typeof(System.Int32), 1 );
			this.AddElementFieldMapping( "DictionaryEntity", "Name", "NAME", false, "VarChar", 50, 0, 0, false, "", null, typeof(System.String), 2 );
			this.AddElementFieldMapping( "DictionaryEntity", "Oid", "OID", false, "Integer", 0, 0, 0, true, "GEN_DICTIONARY_ID", null, typeof(System.Int32), 3 );
			this.AddElementFieldMapping( "DictionaryEntity", "Typeid", "TYPEID", false, "Integer", 0, 0, 0, false, "", null, typeof(System.Int32), 4 );
		}
		/// <summary>Inits DictionarycategoryEntity's mappings</summary>
		private void InitDictionarycategoryEntityMappings()
		{
			this.AddElementMapping( "DictionarycategoryEntity", "EBOSS", @"Default", "DICTIONARYCATEGORY", 2 );
			this.AddElementFieldMapping( "DictionarycategoryEntity", "Name", "NAME", false, "VarChar", 50, 0, 0, false, "", null, typeof(System.String), 0 );
			this.AddElementFieldMapping( "DictionarycategoryEntity", "Oid", "OID", false, "Integer", 0, 0, 0, true, "GEN_DICTIONARYCATEGORY_ID", null, typeof(System.Int32), 1 );
		}
		/// <summary>Inits FunctionEntity's mappings</summary>
		private void InitFunctionEntityMappings()
		{
			this.AddElementMapping( "FunctionEntity", "EBOSS", @"Default", "FUNCTION", 9 );
			this.AddElementFieldMapping( "FunctionEntity", "Description", "DESCRIPTION", true, "VarChar", 500, 0, 0, false, "", null, typeof(System.String), 0 );
			this.AddElementFieldMapping( "FunctionEntity", "Functionid", "FUNCTIONID", false, "Integer", 0, 0, 0, false, "", null, typeof(System.Int32), 1 );
			this.AddElementFieldMapping( "FunctionEntity", "Functionname", "FUNCTIONNAME", false, "VarChar", 50, 0, 0, false, "", null, typeof(System.String), 2 );
			this.AddElementFieldMapping( "FunctionEntity", "Imageurl", "IMAGEURL", true, "VarChar", 500, 0, 0, false, "", null, typeof(System.String), 3 );
			this.AddElementFieldMapping( "FunctionEntity", "Index", "INDEX", false, "Integer", 0, 0, 0, false, "", null, typeof(System.Int32), 4 );
			this.AddElementFieldMapping( "FunctionEntity", "Navigateurl", "NAVIGATEURL", true, "VarChar", 500, 0, 0, false, "", null, typeof(System.String), 5 );
			this.AddElementFieldMapping( "FunctionEntity", "Parentid", "PARENTID", false, "VarChar", 300, 0, 0, false, "", null, typeof(System.String), 6 );
			this.AddElementFieldMapping( "FunctionEntity", "Type", "TYPE", false, "SmallInt", 0, 0, 0, false, "", null, typeof(System.Int16), 7 );
			this.AddElementFieldMapping( "FunctionEntity", "Visible", "VISIBLE", false, "SmallInt", 0, 0, 0, false, "", null, typeof(System.Int16), 8 );
		}
		/// <summary>Inits HtmltoolaccountEntity's mappings</summary>
		private void InitHtmltoolaccountEntityMappings()
		{
			this.AddElementMapping( "HtmltoolaccountEntity", "EBOSS", @"Default", "HTMLTOOLACCOUNT", 5 );
			this.AddElementFieldMapping( "HtmltoolaccountEntity", "Accountname", "ACCOUNTNAME", true, "VarChar", 255, 0, 0, false, "", null, typeof(System.String), 0 );
			this.AddElementFieldMapping( "HtmltoolaccountEntity", "From", "FROM", true, "Integer", 0, 0, 0, false, "", null, typeof(System.Int32), 1 );
			this.AddElementFieldMapping( "HtmltoolaccountEntity", "Id", "ID", false, "Integer", 0, 0, 0, true, "GEN_HTMLTOOLACCOUNT_ID", null, typeof(System.Int32), 2 );
			this.AddElementFieldMapping( "HtmltoolaccountEntity", "Isdefault", "ISDEFAULT", true, "SmallInt", 0, 0, 0, false, "", null, typeof(System.Int16), 3 );
			this.AddElementFieldMapping( "HtmltoolaccountEntity", "Sitecode", "SITECODE", true, "Integer", 0, 0, 0, false, "", null, typeof(System.Int32), 4 );
		}
		/// <summary>Inits HtmltoolaccounttemplateEntity's mappings</summary>
		private void InitHtmltoolaccounttemplateEntityMappings()
		{
			this.AddElementMapping( "HtmltoolaccounttemplateEntity", "EBOSS", @"Default", "HTMLTOOLACCOUNTTEMPLATE", 4 );
			this.AddElementFieldMapping( "HtmltoolaccounttemplateEntity", "Accountid", "ACCOUNTID", true, "Integer", 0, 0, 0, false, "", null, typeof(System.Int32), 0 );
			this.AddElementFieldMapping( "HtmltoolaccounttemplateEntity", "Categoryruleid", "CATEGORYRULEID", true, "Integer", 0, 0, 0, false, "", null, typeof(System.Int32), 1 );
			this.AddElementFieldMapping( "HtmltoolaccounttemplateEntity", "Content", "CONTENT", true, "Integer", 0, 0, 0, false, "", null, typeof(System.Int32), 2 );
			this.AddElementFieldMapping( "HtmltoolaccounttemplateEntity", "Id", "ID", false, "Integer", 0, 0, 0, true, "GEN_HTMLTOOLACCOUNTTEMPLATE_ID", null, typeof(System.Int32), 3 );
		}
		/// <summary>Inits HtmltoolcategoryruleEntity's mappings</summary>
		private void InitHtmltoolcategoryruleEntityMappings()
		{
			this.AddElementMapping( "HtmltoolcategoryruleEntity", "EBOSS", @"Default", "HTMLTOOLCATEGORYRULE", 5 );
			this.AddElementFieldMapping( "HtmltoolcategoryruleEntity", "Category", "CATEGORY", true, "VarChar", 255, 0, 0, false, "", null, typeof(System.String), 0 );
			this.AddElementFieldMapping( "HtmltoolcategoryruleEntity", "Comments", "COMMENTS", true, "VarChar", 255, 0, 0, false, "", null, typeof(System.String), 1 );
			this.AddElementFieldMapping( "HtmltoolcategoryruleEntity", "Ebaycategory", "EBAYCATEGORY", true, "VarChar", 255, 0, 0, false, "", null, typeof(System.String), 2 );
			this.AddElementFieldMapping( "HtmltoolcategoryruleEntity", "Id", "ID", false, "Integer", 0, 0, 0, true, "GEN_HTMLTOOLCATEGORYRULE_ID", null, typeof(System.Int32), 3 );
			this.AddElementFieldMapping( "HtmltoolcategoryruleEntity", "Rule", "RULE", true, "VarChar", 255, 0, 0, false, "", null, typeof(System.String), 4 );
		}
		/// <summary>Inits HtmltoolcolorEntity's mappings</summary>
		private void InitHtmltoolcolorEntityMappings()
		{
			this.AddElementMapping( "HtmltoolcolorEntity", "EBOSS", @"Default", "HTMLTOOLCOLOR", 4 );
			this.AddElementFieldMapping( "HtmltoolcolorEntity", "Batchid", "BATCHID", true, "Char", 38, 0, 0, false, "", null, typeof(System.String), 0 );
			this.AddElementFieldMapping( "HtmltoolcolorEntity", "Color", "COLOR", true, "VarChar", 255, 0, 0, false, "", null, typeof(System.String), 1 );
			this.AddElementFieldMapping( "HtmltoolcolorEntity", "Id", "ID", false, "Integer", 0, 0, 0, true, "GEN_HTMLTOOLCOLOR_ID", null, typeof(System.Int32), 2 );
			this.AddElementFieldMapping( "HtmltoolcolorEntity", "Sitecode", "SITECODE", true, "Integer", 0, 0, 0, false, "", null, typeof(System.Int32), 3 );
		}
		/// <summary>Inits HtmltoolstyleEntity's mappings</summary>
		private void InitHtmltoolstyleEntityMappings()
		{
			this.AddElementMapping( "HtmltoolstyleEntity", "EBOSS", @"Default", "HTMLTOOLSTYLE", 5 );
			this.AddElementFieldMapping( "HtmltoolstyleEntity", "Batchid", "BATCHID", true, "Char", 38, 0, 0, false, "", null, typeof(System.String), 0 );
			this.AddElementFieldMapping( "HtmltoolstyleEntity", "Categoryruleid", "CATEGORYRULEID", true, "Integer", 0, 0, 0, false, "", null, typeof(System.Int32), 1 );
			this.AddElementFieldMapping( "HtmltoolstyleEntity", "Id", "ID", false, "Integer", 0, 0, 0, true, "GEN_HTMLTOOLSTYLE_ID", null, typeof(System.Int32), 2 );
			this.AddElementFieldMapping( "HtmltoolstyleEntity", "Sitecode", "SITECODE", true, "Integer", 0, 0, 0, false, "", null, typeof(System.Int32), 3 );
			this.AddElementFieldMapping( "HtmltoolstyleEntity", "Style", "STYLE", true, "VarChar", 255, 0, 0, false, "", null, typeof(System.String), 4 );
		}
		/// <summary>Inits HtmltooltrademarksettingEntity's mappings</summary>
		private void InitHtmltooltrademarksettingEntityMappings()
		{
			this.AddElementMapping( "HtmltooltrademarksettingEntity", "EBOSS", @"Default", "HTMLTOOLTRADEMARKSETTING", 8 );
			this.AddElementFieldMapping( "HtmltooltrademarksettingEntity", "D1", "D1", true, "Text", 2147483647, 0, 0, false, "", null, typeof(System.String), 0 );
			this.AddElementFieldMapping( "HtmltooltrademarksettingEntity", "D2", "D2", true, "Text", 2147483647, 0, 0, false, "", null, typeof(System.String), 1 );
			this.AddElementFieldMapping( "HtmltooltrademarksettingEntity", "D3", "D3", true, "Text", 2147483647, 0, 0, false, "", null, typeof(System.String), 2 );
			this.AddElementFieldMapping( "HtmltooltrademarksettingEntity", "D4", "D4", true, "Text", 2147483647, 0, 0, false, "", null, typeof(System.String), 3 );
			this.AddElementFieldMapping( "HtmltooltrademarksettingEntity", "D5", "D5", true, "Text", 2147483647, 0, 0, false, "", null, typeof(System.String), 4 );
			this.AddElementFieldMapping( "HtmltooltrademarksettingEntity", "Id", "ID", false, "Integer", 0, 0, 0, true, "GEN_HTMLTOOLTRADEMARKSETTING_ID", null, typeof(System.Int32), 5 );
			this.AddElementFieldMapping( "HtmltooltrademarksettingEntity", "Market", "MARKET", true, "VarChar", 50, 0, 0, false, "", null, typeof(System.String), 6 );
			this.AddElementFieldMapping( "HtmltooltrademarksettingEntity", "Name", "NAME", true, "VarChar", 255, 0, 0, false, "", null, typeof(System.String), 7 );
		}
		/// <summary>Inits HtmltoolvocabularyEntity's mappings</summary>
		private void InitHtmltoolvocabularyEntityMappings()
		{
			this.AddElementMapping( "HtmltoolvocabularyEntity", "EBOSS", @"Default", "HTMLTOOLVOCABULARY", 6 );
			this.AddElementFieldMapping( "HtmltoolvocabularyEntity", "Batchid", "BATCHID", true, "Char", 38, 0, 0, false, "", null, typeof(System.String), 0 );
			this.AddElementFieldMapping( "HtmltoolvocabularyEntity", "Categoryruleid", "CATEGORYRULEID", true, "Integer", 0, 0, 0, false, "", null, typeof(System.Int32), 1 );
			this.AddElementFieldMapping( "HtmltoolvocabularyEntity", "Id", "ID", false, "Integer", 0, 0, 0, true, "GEN_HTMLTOOLVOCABULARY_ID", null, typeof(System.Int32), 2 );
			this.AddElementFieldMapping( "HtmltoolvocabularyEntity", "Materialword", "MATERIALWORD", true, "Text", 2147483647, 0, 0, false, "", null, typeof(System.String), 3 );
			this.AddElementFieldMapping( "HtmltoolvocabularyEntity", "Sitecode", "SITECODE", true, "Integer", 0, 0, 0, false, "", null, typeof(System.Int32), 4 );
			this.AddElementFieldMapping( "HtmltoolvocabularyEntity", "Titleword", "TITLEWORD", true, "Text", 2147483647, 0, 0, false, "", null, typeof(System.String), 5 );
		}
		/// <summary>Inits ProduccategoryattributeEntity's mappings</summary>
		private void InitProduccategoryattributeEntityMappings()
		{
			this.AddElementMapping( "ProduccategoryattributeEntity", "EBOSS", @"Default", "PRODUCCATEGORYATTRIBUTE", 5 );
			this.AddElementFieldMapping( "ProduccategoryattributeEntity", "Fieldname", "FIELDNAME", false, "VarChar", 50, 0, 0, false, "", null, typeof(System.String), 0 );
			this.AddElementFieldMapping( "ProduccategoryattributeEntity", "Fieldtype", "FIELDTYPE", false, "SmallInt", 0, 0, 0, false, "", null, typeof(System.Int16), 1 );
			this.AddElementFieldMapping( "ProduccategoryattributeEntity", "Isactive", "ISACTIVE", false, "SmallInt", 0, 0, 0, false, "", null, typeof(System.Int16), 2 );
			this.AddElementFieldMapping( "ProduccategoryattributeEntity", "Prodcatattrid", "PRODCATATTRID", false, "Integer", 0, 0, 0, true, "GEN_PRODUCCATEGORYATTRIBUTE_ID", null, typeof(System.Int32), 3 );
			this.AddElementFieldMapping( "ProduccategoryattributeEntity", "Prodcateid", "PRODCATEID", false, "Integer", 0, 0, 0, false, "", null, typeof(System.Int32), 4 );
		}
		/// <summary>Inits ProductEntity's mappings</summary>
		private void InitProductEntityMappings()
		{
			this.AddElementMapping( "ProductEntity", "EBOSS", @"Default", "PRODUCT", 43 );
			this.AddElementFieldMapping( "ProductEntity", "Averageprice", "AVERAGEPRICE", true, "Decimal", 0, 2, 10, false, "", null, typeof(System.Decimal), 0 );
			this.AddElementFieldMapping( "ProductEntity", "Brand", "BRAND", true, "Integer", 0, 0, 0, false, "", null, typeof(System.Int32), 1 );
			this.AddElementFieldMapping( "ProductEntity", "Buyitnowprice", "BUYITNOWPRICE", true, "Decimal", 0, 2, 10, false, "", null, typeof(System.Decimal), 2 );
			this.AddElementFieldMapping( "ProductEntity", "Comment", "COMMENT", true, "VarChar", 2000, 0, 0, false, "", null, typeof(System.String), 3 );
			this.AddElementFieldMapping( "ProductEntity", "Createdate", "CREATEDATE", true, "TimeStamp", 8, 0, 0, false, "", null, typeof(System.DateTime), 4 );
			this.AddElementFieldMapping( "ProductEntity", "Createuser", "CREATEUSER", true, "VarChar", 50, 0, 0, false, "", null, typeof(System.String), 5 );
			this.AddElementFieldMapping( "ProductEntity", "Description", "DESCRIPTION", true, "Text", 2147483647, 0, 0, false, "", null, typeof(System.String), 6 );
			this.AddElementFieldMapping( "ProductEntity", "Ebaycateid", "EBAYCATEID", true, "VarChar", 50, 0, 0, false, "", null, typeof(System.String), 7 );
			this.AddElementFieldMapping( "ProductEntity", "Innerprice", "INNERPRICE", true, "Decimal", 0, 2, 10, false, "", null, typeof(System.Decimal), 8 );
			this.AddElementFieldMapping( "ProductEntity", "Interestrate", "INTERESTRATE", true, "Decimal", 0, 2, 10, false, "", null, typeof(System.Decimal), 9 );
			this.AddElementFieldMapping( "ProductEntity", "Isdelete", "ISDELETE", true, "Integer", 0, 0, 0, false, "", null, typeof(System.Int32), 10 );
			this.AddElementFieldMapping( "ProductEntity", "Lastupdateby", "LASTUPDATEBY", true, "VarChar", 50, 0, 0, false, "", null, typeof(System.String), 11 );
			this.AddElementFieldMapping( "ProductEntity", "Lastupdatetime", "LASTUPDATETIME", true, "TimeStamp", 8, 0, 0, false, "", null, typeof(System.DateTime), 12 );
			this.AddElementFieldMapping( "ProductEntity", "Latestprice", "LATESTPRICE", true, "Decimal", 0, 2, 10, false, "", null, typeof(System.Decimal), 13 );
			this.AddElementFieldMapping( "ProductEntity", "Manufacturer", "MANUFACTURER", true, "VarChar", 50, 0, 0, false, "", null, typeof(System.String), 14 );
			this.AddElementFieldMapping( "ProductEntity", "Memberprice", "MEMBERPRICE", true, "Decimal", 0, 2, 10, false, "", null, typeof(System.Decimal), 15 );
			this.AddElementFieldMapping( "ProductEntity", "Name", "NAME", false, "VarChar", 100, 0, 0, false, "", null, typeof(System.String), 16 );
			this.AddElementFieldMapping( "ProductEntity", "Needwarning", "NEEDWARNING", false, "SmallInt", 0, 0, 0, false, "", null, typeof(System.Int16), 17 );
			this.AddElementFieldMapping( "ProductEntity", "Paipaicatid", "PAIPAICATID", true, "VarChar", 50, 0, 0, false, "", null, typeof(System.String), 18 );
			this.AddElementFieldMapping( "ProductEntity", "Prodactualcostprice", "PRODACTUALCOSTPRICE", true, "Decimal", 0, 2, 10, false, "", null, typeof(System.Decimal), 19 );
			this.AddElementFieldMapping( "ProductEntity", "Prodcategory", "PRODCATEGORY", false, "Integer", 0, 0, 0, false, "", null, typeof(System.Int32), 20 );
			this.AddElementFieldMapping( "ProductEntity", "Prodreferedcostprice", "PRODREFEREDCOSTPRICE", true, "Decimal", 0, 2, 10, false, "", null, typeof(System.Decimal), 21 );
			this.AddElementFieldMapping( "ProductEntity", "Productid", "PRODUCTID", false, "Integer", 0, 0, 0, true, "GEN_PRODUCT_ID", null, typeof(System.Int32), 22 );
			this.AddElementFieldMapping( "ProductEntity", "Profitaddrate", "PROFITADDRATE", true, "Decimal", 0, 2, 10, false, "", null, typeof(System.Decimal), 23 );
			this.AddElementFieldMapping( "ProductEntity", "Quantity", "QUANTITY", false, "Integer", 0, 0, 0, false, "", null, typeof(System.Int32), 24 );
			this.AddElementFieldMapping( "ProductEntity", "Reservedprice", "RESERVEDPRICE", true, "Decimal", 0, 2, 10, false, "", null, typeof(System.Decimal), 25 );
			this.AddElementFieldMapping( "ProductEntity", "Retailprice", "RETAILPRICE", true, "Decimal", 0, 2, 10, false, "", null, typeof(System.Decimal), 26 );
			this.AddElementFieldMapping( "ProductEntity", "Size", "SIZE", true, "VarChar", 50, 0, 0, false, "", null, typeof(System.String), 27 );
			this.AddElementFieldMapping( "ProductEntity", "Sku", "SKU", true, "VarChar", 50, 0, 0, false, "", null, typeof(System.String), 28 );
			this.AddElementFieldMapping( "ProductEntity", "Specification", "SPECIFICATION", true, "VarChar", 500, 0, 0, false, "", null, typeof(System.String), 29 );
			this.AddElementFieldMapping( "ProductEntity", "Startprice", "STARTPRICE", true, "Decimal", 0, 2, 10, false, "", null, typeof(System.Decimal), 30 );
			this.AddElementFieldMapping( "ProductEntity", "Status", "STATUS", false, "SmallInt", 0, 0, 0, false, "", null, typeof(System.Int16), 31 );
			this.AddElementFieldMapping( "ProductEntity", "Supplier1", "SUPPLIER1", true, "Integer", 0, 0, 0, false, "", null, typeof(System.Int32), 32 );
			this.AddElementFieldMapping( "ProductEntity", "Supply2", "SUPPLY2", true, "Integer", 0, 0, 0, false, "", null, typeof(System.Int32), 33 );
			this.AddElementFieldMapping( "ProductEntity", "Supply3", "SUPPLY3", true, "Integer", 0, 0, 0, false, "", null, typeof(System.Int32), 34 );
			this.AddElementFieldMapping( "ProductEntity", "Tag", "TAG", true, "VarChar", 50, 0, 0, false, "", null, typeof(System.String), 35 );
			this.AddElementFieldMapping( "ProductEntity", "Taobaocatid", "TAOBAOCATID", true, "VarChar", 50, 0, 0, false, "", null, typeof(System.String), 36 );
			this.AddElementFieldMapping( "ProductEntity", "Type", "TYPE", true, "VarChar", 200, 0, 0, false, "", null, typeof(System.String), 37 );
			this.AddElementFieldMapping( "ProductEntity", "Unit", "UNIT", true, "Integer", 0, 0, 0, false, "", null, typeof(System.Int32), 38 );
			this.AddElementFieldMapping( "ProductEntity", "Warehouseid", "WAREHOUSEID", true, "Integer", 0, 0, 0, false, "", null, typeof(System.Int32), 39 );
			this.AddElementFieldMapping( "ProductEntity", "Warninglevel", "WARNINGLEVEL", true, "Integer", 0, 0, 0, false, "", null, typeof(System.Int32), 40 );
			this.AddElementFieldMapping( "ProductEntity", "Weight", "WEIGHT", true, "Decimal", 0, 2, 10, false, "", null, typeof(System.Decimal), 41 );
			this.AddElementFieldMapping( "ProductEntity", "Wholesaleprice", "WHOLESALEPRICE", true, "Decimal", 0, 2, 10, false, "", null, typeof(System.Decimal), 42 );
		}
		/// <summary>Inits ProductcategoryEntity's mappings</summary>
		private void InitProductcategoryEntityMappings()
		{
			this.AddElementMapping( "ProductcategoryEntity", "EBOSS", @"Default", "PRODUCTCATEGORY", 4 );
			this.AddElementFieldMapping( "ProductcategoryEntity", "Name", "NAME", false, "VarChar", 50, 0, 0, false, "", null, typeof(System.String), 0 );
			this.AddElementFieldMapping( "ProductcategoryEntity", "Parentcategoryid", "PARENTCATEGORYID", true, "Integer", 0, 0, 0, false, "", null, typeof(System.Int32), 1 );
			this.AddElementFieldMapping( "ProductcategoryEntity", "Prodcategoryid", "PRODCATEGORYID", false, "Integer", 0, 0, 0, false, "", null, typeof(System.Int32), 2 );
			this.AddElementFieldMapping( "ProductcategoryEntity", "Prodcateid", "PRODCATEID", false, "Integer", 0, 0, 0, false, "", null, typeof(System.Int32), 3 );
		}
		/// <summary>Inits ProductgroupEntity's mappings</summary>
		private void InitProductgroupEntityMappings()
		{
			this.AddElementMapping( "ProductgroupEntity", "EBOSS", @"Default", "PRODUCTGROUP", 36 );
			this.AddElementFieldMapping( "ProductgroupEntity", "Accountid", "ACCOUNTID", true, "Integer", 0, 0, 0, false, "", null, typeof(System.Int32), 0 );
			this.AddElementFieldMapping( "ProductgroupEntity", "Brand", "BRAND", true, "VarChar", 50, 0, 0, false, "", null, typeof(System.String), 1 );
			this.AddElementFieldMapping( "ProductgroupEntity", "Categoryruleid", "CATEGORYRULEID", true, "Integer", 0, 0, 0, false, "", null, typeof(System.Int32), 2 );
			this.AddElementFieldMapping( "ProductgroupEntity", "Color", "COLOR", true, "VarChar", 20, 0, 0, false, "", null, typeof(System.String), 3 );
			this.AddElementFieldMapping( "ProductgroupEntity", "Colorid", "COLORID", true, "Integer", 0, 0, 0, false, "", null, typeof(System.Int32), 4 );
			this.AddElementFieldMapping( "ProductgroupEntity", "Comment", "COMMENT", true, "VarChar", 2000, 0, 0, false, "", null, typeof(System.String), 5 );
			this.AddElementFieldMapping( "ProductgroupEntity", "Description", "DESCRIPTION", true, "Text", 2147483647, 0, 0, false, "", null, typeof(System.String), 6 );
			this.AddElementFieldMapping( "ProductgroupEntity", "Englishtitle", "ENGLISHTITLE", true, "VarChar", 255, 0, 0, false, "", null, typeof(System.String), 7 );
			this.AddElementFieldMapping( "ProductgroupEntity", "Id", "ID", false, "Integer", 0, 0, 0, true, "GEN_PRODUCTGROUP_ID", null, typeof(System.Int32), 8 );
			this.AddElementFieldMapping( "ProductgroupEntity", "Itemno", "ITEMNO", false, "VarChar", 50, 0, 0, false, "", null, typeof(System.String), 9 );
			this.AddElementFieldMapping( "ProductgroupEntity", "Market", "MARKET", true, "VarChar", 20, 0, 0, false, "", null, typeof(System.String), 10 );
			this.AddElementFieldMapping( "ProductgroupEntity", "Material", "MATERIAL", true, "VarChar", 200, 0, 0, false, "", null, typeof(System.String), 11 );
			this.AddElementFieldMapping( "ProductgroupEntity", "Picurl1", "PICURL1", true, "VarChar", 255, 0, 0, false, "", null, typeof(System.String), 12 );
			this.AddElementFieldMapping( "ProductgroupEntity", "Picurl10", "PICURL10", true, "VarChar", 255, 0, 0, false, "", null, typeof(System.String), 13 );
			this.AddElementFieldMapping( "ProductgroupEntity", "Picurl11", "PICURL11", true, "VarChar", 255, 0, 0, false, "", null, typeof(System.String), 14 );
			this.AddElementFieldMapping( "ProductgroupEntity", "Picurl12", "PICURL12", true, "VarChar", 255, 0, 0, false, "", null, typeof(System.String), 15 );
			this.AddElementFieldMapping( "ProductgroupEntity", "Picurl2", "PICURL2", true, "VarChar", 255, 0, 0, false, "", null, typeof(System.String), 16 );
			this.AddElementFieldMapping( "ProductgroupEntity", "Picurl3", "PICURL3", true, "VarChar", 255, 0, 0, false, "", null, typeof(System.String), 17 );
			this.AddElementFieldMapping( "ProductgroupEntity", "Picurl4", "PICURL4", true, "VarChar", 255, 0, 0, false, "", null, typeof(System.String), 18 );
			this.AddElementFieldMapping( "ProductgroupEntity", "Picurl5", "PICURL5", true, "VarChar", 255, 0, 0, false, "", null, typeof(System.String), 19 );
			this.AddElementFieldMapping( "ProductgroupEntity", "Picurl6", "PICURL6", true, "VarChar", 255, 0, 0, false, "", null, typeof(System.String), 20 );
			this.AddElementFieldMapping( "ProductgroupEntity", "Picurl7", "PICURL7", true, "VarChar", 255, 0, 0, false, "", null, typeof(System.String), 21 );
			this.AddElementFieldMapping( "ProductgroupEntity", "Picurl8", "PICURL8", true, "VarChar", 255, 0, 0, false, "", null, typeof(System.String), 22 );
			this.AddElementFieldMapping( "ProductgroupEntity", "Picurl9", "PICURL9", true, "VarChar", 255, 0, 0, false, "", null, typeof(System.String), 23 );
			this.AddElementFieldMapping( "ProductgroupEntity", "Productcode", "PRODUCTCODE", false, "VarChar", 50, 0, 0, false, "", null, typeof(System.String), 24 );
			this.AddElementFieldMapping( "ProductgroupEntity", "Productname", "PRODUCTNAME", false, "VarChar", 200, 0, 0, false, "", null, typeof(System.String), 25 );
			this.AddElementFieldMapping( "ProductgroupEntity", "Quantity", "QUANTITY", true, "Integer", 0, 0, 0, false, "", null, typeof(System.Int32), 26 );
			this.AddElementFieldMapping( "ProductgroupEntity", "Retailprice", "RETAILPRICE", true, "VarChar", 20, 0, 0, false, "", null, typeof(System.String), 27 );
			this.AddElementFieldMapping( "ProductgroupEntity", "Size", "SIZE", true, "VarChar", 20, 0, 0, false, "", null, typeof(System.String), 28 );
			this.AddElementFieldMapping( "ProductgroupEntity", "Sizetable", "SIZETABLE", true, "VarChar", 500, 0, 0, false, "", null, typeof(System.String), 29 );
			this.AddElementFieldMapping( "ProductgroupEntity", "Sourceid", "SOURCEID", true, "Integer", 0, 0, 0, false, "", null, typeof(System.Int32), 30 );
			this.AddElementFieldMapping( "ProductgroupEntity", "Specifics", "SPECIFICS", true, "VarChar", 200, 0, 0, false, "", null, typeof(System.String), 31 );
			this.AddElementFieldMapping( "ProductgroupEntity", "Styleid", "STYLEID", true, "Integer", 0, 0, 0, false, "", null, typeof(System.Int32), 32 );
			this.AddElementFieldMapping( "ProductgroupEntity", "Tag", "TAG", true, "Integer", 0, 0, 0, false, "", null, typeof(System.Int32), 33 );
			this.AddElementFieldMapping( "ProductgroupEntity", "Templateid", "TEMPLATEID", true, "Integer", 0, 0, 0, false, "", null, typeof(System.Int32), 34 );
			this.AddElementFieldMapping( "ProductgroupEntity", "Trademarkid", "TRADEMARKID", true, "Integer", 0, 0, 0, false, "", null, typeof(System.Int32), 35 );
		}
		/// <summary>Inits ProductsummaryEntity's mappings</summary>
		private void InitProductsummaryEntityMappings()
		{
			this.AddElementMapping( "ProductsummaryEntity", "EBOSS", @"Default", "PRODUCTSUMMARY", 6 );
			this.AddElementFieldMapping( "ProductsummaryEntity", "Availablequantity", "AVAILABLEQUANTITY", false, "Integer", 0, 0, 0, false, "", null, typeof(System.Int32), 0 );
			this.AddElementFieldMapping( "ProductsummaryEntity", "Currentquantity", "CURRENTQUANTITY", false, "Integer", 0, 0, 0, false, "", null, typeof(System.Int32), 1 );
			this.AddElementFieldMapping( "ProductsummaryEntity", "Onsalequantity", "ONSALEQUANTITY", false, "Integer", 0, 0, 0, false, "", null, typeof(System.Int32), 2 );
			this.AddElementFieldMapping( "ProductsummaryEntity", "Pendingquantity", "PENDINGQUANTITY", false, "Integer", 0, 0, 0, false, "", null, typeof(System.Int32), 3 );
			this.AddElementFieldMapping( "ProductsummaryEntity", "Productid", "PRODUCTID", false, "Integer", 0, 0, 0, false, "", null, typeof(System.Int32), 4 );
			this.AddElementFieldMapping( "ProductsummaryEntity", "Soldquantity", "SOLDQUANTITY", false, "Integer", 0, 0, 0, false, "", null, typeof(System.Int32), 5 );
		}
		/// <summary>Inits RoleEntity's mappings</summary>
		private void InitRoleEntityMappings()
		{
			this.AddElementMapping( "RoleEntity", "EBOSS", @"Default", "ROLE", 2 );
			this.AddElementFieldMapping( "RoleEntity", "Roleid", "ROLEID", false, "Integer", 0, 0, 0, false, "", null, typeof(System.Int32), 0 );
			this.AddElementFieldMapping( "RoleEntity", "Rolename", "ROLENAME", false, "VarChar", 50, 0, 0, false, "", null, typeof(System.String), 1 );
		}
		/// <summary>Inits RolefunctionEntity's mappings</summary>
		private void InitRolefunctionEntityMappings()
		{
			this.AddElementMapping( "RolefunctionEntity", "EBOSS", @"Default", "ROLEFUNCTION", 2 );
			this.AddElementFieldMapping( "RolefunctionEntity", "Functionid", "FUNCTIONID", false, "Integer", 0, 0, 0, false, "", null, typeof(System.Int32), 0 );
			this.AddElementFieldMapping( "RolefunctionEntity", "Roleid", "ROLEID", false, "Integer", 0, 0, 0, false, "", null, typeof(System.Int32), 1 );
		}
		/// <summary>Inits SizesettingEntity's mappings</summary>
		private void InitSizesettingEntityMappings()
		{
			this.AddElementMapping( "SizesettingEntity", "EBOSS", @"Default", "SIZESETTING", 6 );
			this.AddElementFieldMapping( "SizesettingEntity", "Batchid", "BATCHID", true, "Char", 38, 0, 0, false, "", null, typeof(System.String), 0 );
			this.AddElementFieldMapping( "SizesettingEntity", "Id", "ID", false, "Integer", 0, 0, 0, true, "GEN_SIZESETTING_ID", null, typeof(System.Int32), 1 );
			this.AddElementFieldMapping( "SizesettingEntity", "Sitecode", "SITECODE", true, "Integer", 0, 0, 0, false, "", null, typeof(System.Int32), 2 );
			this.AddElementFieldMapping( "SizesettingEntity", "Size", "SIZE", true, "VarChar", 20, 0, 0, false, "", null, typeof(System.String), 3 );
			this.AddElementFieldMapping( "SizesettingEntity", "Sizedescription", "SIZEDESCRIPTION", true, "VarChar", 255, 0, 0, false, "", null, typeof(System.String), 4 );
			this.AddElementFieldMapping( "SizesettingEntity", "Sizetitle", "SIZETITLE", true, "VarChar", 255, 0, 0, false, "", null, typeof(System.String), 5 );
		}
		/// <summary>Inits StoreEntity's mappings</summary>
		private void InitStoreEntityMappings()
		{
			this.AddElementMapping( "StoreEntity", "EBOSS", @"Default", "STORE", 12 );
			this.AddElementFieldMapping( "StoreEntity", "Code", "CODE", true, "VarChar", 520, 0, 0, false, "", null, typeof(System.String), 0 );
			this.AddElementFieldMapping( "StoreEntity", "Creditscore", "CREDITSCORE", true, "Integer", 0, 0, 0, false, "", null, typeof(System.Int32), 1 );
			this.AddElementFieldMapping( "StoreEntity", "Descripton", "DESCRIPTON", true, "VarChar", 2000, 0, 0, false, "", null, typeof(System.String), 2 );
			this.AddElementFieldMapping( "StoreEntity", "Isactive", "ISACTIVE", false, "SmallInt", 0, 0, 0, false, "", null, typeof(System.Int16), 3 );
			this.AddElementFieldMapping( "StoreEntity", "Isdefault", "ISDEFAULT", false, "SmallInt", 0, 0, 0, false, "", null, typeof(System.Int16), 4 );
			this.AddElementFieldMapping( "StoreEntity", "Name", "NAME", true, "VarChar", 50, 0, 0, false, "", null, typeof(System.String), 5 );
			this.AddElementFieldMapping( "StoreEntity", "Storeid", "STOREID", false, "Integer", 0, 0, 0, false, "", null, typeof(System.Int32), 6 );
			this.AddElementFieldMapping( "StoreEntity", "Storekind", "STOREKIND", true, "SmallInt", 0, 0, 0, false, "", null, typeof(System.Int16), 7 );
			this.AddElementFieldMapping( "StoreEntity", "Subscription", "SUBSCRIPTION", true, "VarChar", 2000, 0, 0, false, "", null, typeof(System.String), 8 );
			this.AddElementFieldMapping( "StoreEntity", "Token", "TOKEN", true, "VarChar", 2000, 0, 0, false, "", null, typeof(System.String), 9 );
			this.AddElementFieldMapping( "StoreEntity", "Userid", "USERID", true, "Integer", 0, 0, 0, false, "", null, typeof(System.Int32), 10 );
			this.AddElementFieldMapping( "StoreEntity", "Username", "USERNAME", true, "VarChar", 255, 0, 0, false, "", null, typeof(System.String), 11 );
		}
		/// <summary>Inits StorecategoryEntity's mappings</summary>
		private void InitStorecategoryEntityMappings()
		{
			this.AddElementMapping( "StorecategoryEntity", "EBOSS", @"Default", "STORECATEGORY", 5 );
			this.AddElementFieldMapping( "StorecategoryEntity", "Name", "NAME", false, "VarChar", 255, 0, 0, false, "", null, typeof(System.String), 0 );
			this.AddElementFieldMapping( "StorecategoryEntity", "Parentstorecat", "PARENTSTORECAT", true, "Integer", 0, 0, 0, false, "", null, typeof(System.Int32), 1 );
			this.AddElementFieldMapping( "StorecategoryEntity", "Storecategoryid", "STORECATEGORYID", false, "Integer", 0, 0, 0, false, "", null, typeof(System.Int32), 2 );
			this.AddElementFieldMapping( "StorecategoryEntity", "Storeid", "STOREID", false, "Integer", 0, 0, 0, false, "", null, typeof(System.Int32), 3 );
			this.AddElementFieldMapping( "StorecategoryEntity", "Url", "URL", true, "VarChar", 255, 0, 0, false, "", null, typeof(System.String), 4 );
		}
		/// <summary>Inits TemplateEntity's mappings</summary>
		private void InitTemplateEntityMappings()
		{
			this.AddElementMapping( "TemplateEntity", "EBOSS", @"Default", "TEMPLATE", 3 );
			this.AddElementFieldMapping( "TemplateEntity", "Description", "DESCRIPTION", true, "Text", 2147483647, 0, 0, false, "", null, typeof(System.String), 0 );
			this.AddElementFieldMapping( "TemplateEntity", "Id", "ID", false, "Integer", 0, 0, 0, true, "GEN_TEMPLATE_ID", null, typeof(System.Int32), 1 );
			this.AddElementFieldMapping( "TemplateEntity", "Name", "NAME", true, "VarChar", 20, 0, 0, false, "", null, typeof(System.String), 2 );
		}
		/// <summary>Inits TitlesettingEntity's mappings</summary>
		private void InitTitlesettingEntityMappings()
		{
			this.AddElementMapping( "TitlesettingEntity", "EBOSS", @"Default", "TITLESETTING", 4 );
			this.AddElementFieldMapping( "TitlesettingEntity", "Color", "COLOR", true, "VarChar", 20, 0, 0, false, "", null, typeof(System.String), 0 );
			this.AddElementFieldMapping( "TitlesettingEntity", "Colortitle", "COLORTITLE", true, "VarChar", 255, 0, 0, false, "", null, typeof(System.String), 1 );
			this.AddElementFieldMapping( "TitlesettingEntity", "Htmltoolcolorid", "HTMLTOOLCOLORID", true, "Integer", 0, 0, 0, false, "", null, typeof(System.Int32), 2 );
			this.AddElementFieldMapping( "TitlesettingEntity", "Id", "ID", false, "Integer", 0, 0, 0, true, "GEN_TITLESETTING_ID", null, typeof(System.Int32), 3 );
		}
		/// <summary>Inits UserEntity's mappings</summary>
		private void InitUserEntityMappings()
		{
			this.AddElementMapping( "UserEntity", "EBOSS", @"Default", "USER", 18 );
			this.AddElementFieldMapping( "UserEntity", "Address", "ADDRESS", true, "VarChar", 200, 0, 0, false, "", null, typeof(System.String), 0 );
			this.AddElementFieldMapping( "UserEntity", "Birthday", "BIRTHDAY", true, "Date", 4, 0, 0, false, "", null, typeof(System.DateTime), 1 );
			this.AddElementFieldMapping( "UserEntity", "Company", "COMPANY", true, "VarChar", 500, 0, 0, false, "", null, typeof(System.String), 2 );
			this.AddElementFieldMapping( "UserEntity", "Department", "DEPARTMENT", true, "VarChar", 500, 0, 0, false, "", null, typeof(System.String), 3 );
			this.AddElementFieldMapping( "UserEntity", "Email", "EMAIL", true, "VarChar", 50, 0, 0, false, "", null, typeof(System.String), 4 );
			this.AddElementFieldMapping( "UserEntity", "Fullname", "FULLNAME", true, "VarChar", 50, 0, 0, false, "", null, typeof(System.String), 5 );
			this.AddElementFieldMapping( "UserEntity", "Gender", "GENDER", true, "SmallInt", 0, 0, 0, false, "", null, typeof(System.Int16), 6 );
			this.AddElementFieldMapping( "UserEntity", "Lastlogindate", "LASTLOGINDATE", true, "TimeStamp", 8, 0, 0, false, "", null, typeof(System.DateTime), 7 );
			this.AddElementFieldMapping( "UserEntity", "Mobile", "MOBILE", true, "VarChar", 50, 0, 0, false, "", null, typeof(System.String), 8 );
			this.AddElementFieldMapping( "UserEntity", "Numberoflogins", "NUMBEROFLOGINS", true, "Integer", 0, 0, 0, false, "", null, typeof(System.Int32), 9 );
			this.AddElementFieldMapping( "UserEntity", "Password", "PASSWORD", false, "VarChar", 500, 0, 0, false, "", null, typeof(System.String), 10 );
			this.AddElementFieldMapping( "UserEntity", "Phone", "PHONE", true, "VarChar", 50, 0, 0, false, "", null, typeof(System.String), 11 );
			this.AddElementFieldMapping( "UserEntity", "Position", "POSITION", true, "VarChar", 500, 0, 0, false, "", null, typeof(System.String), 12 );
			this.AddElementFieldMapping( "UserEntity", "Remarks", "REMARKS", true, "VarChar", 500, 0, 0, false, "", null, typeof(System.String), 13 );
			this.AddElementFieldMapping( "UserEntity", "Type", "TYPE", true, "SmallInt", 0, 0, 0, false, "", null, typeof(System.Int16), 14 );
			this.AddElementFieldMapping( "UserEntity", "Userid", "USERID", false, "Integer", 0, 0, 0, true, "GEN_USER_ID", null, typeof(System.Int32), 15 );
			this.AddElementFieldMapping( "UserEntity", "Username", "USERNAME", false, "VarChar", 50, 0, 0, false, "", null, typeof(System.String), 16 );
			this.AddElementFieldMapping( "UserEntity", "Userstatus", "USERSTATUS", true, "SmallInt", 0, 0, 0, false, "", null, typeof(System.Int16), 17 );
		}
		/// <summary>Inits UserroleEntity's mappings</summary>
		private void InitUserroleEntityMappings()
		{
			this.AddElementMapping( "UserroleEntity", "EBOSS", @"Default", "USERROLE", 2 );
			this.AddElementFieldMapping( "UserroleEntity", "Roleid", "ROLEID", false, "Integer", 0, 0, 0, false, "", null, typeof(System.Int32), 0 );
			this.AddElementFieldMapping( "UserroleEntity", "Userid", "USERID", false, "Integer", 0, 0, 0, false, "", null, typeof(System.Int32), 1 );
		}

	}
}